package com.leilei.greendao.util;

import android.support.design.widget.Snackbar;
import android.view.View;

import com.leilei.greendao.R;

import java.util.UUID;

/**
 * Created by Administrator on 2017/9/23 0023.
 */

public class Util {
    public static String getUUID() {
        UUID uuid = UUID.randomUUID();
        String str = uuid.toString();
        String uuidStr = str.replace("-", "");
        return uuidStr;
    }
    public static void showSnackBar(View linearLayout,String context){
        Snackbar mSnackbar= Snackbar.make(linearLayout,context, Snackbar.LENGTH_SHORT);
        mSnackbar.getView().setBackgroundResource(R.color.colorAccent);
        mSnackbar.show();
    }
}
